﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DemoApplication1
{
    class Individual : DbfDotNet.DbfRecord
    {
        [DbfDotNet.Column(Width = 20)]
        public string FIRSTNAME;
        [DbfDotNet.Column(Width = 20)]
        public string MIDDLENAME;
        [DbfDotNet.Column(Width = 20)]
        public string LASTNAME;
        public DateTime DOB;
        [DbfDotNet.Column(Width = 20)]
        public string STATE;

        [DbfDotNet.Column(Type = DbfDotNet.ColumnType.DBASE3_MEMO)]
        static DbfDotNet.DbfColumn NOTES = null;

        //public string COUNTRY
        //{
        //    get
        //    {
        //        return (string)GetColumnValue(GetColumn(0));
        //    }
        //    set
        //    {
        //        SetColumnValue(GetColumn("COUNTRY"), value);
        //    }
        //}

        public string Notes
        {
            get { return (string)GetColumnValue(NOTES); }
            set { SetColumnValue(NOTES, value); }
        }
    }
}
